package cn.liumouren.pojo;

import com.wuwenze.poi.annotation.Excel;
import com.wuwenze.poi.annotation.ExcelField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Excel("sheet1")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {

    private String _id;

    @ExcelField(value = "姓名")
    private String name;

    @ExcelField(value = "学院")
    private String department;

    @ExcelField(value = "年级")
    private String grade;

    @ExcelField(value = "学号")
    private String studentId;

    @ExcelField(value = "联系方式")
    private String phone;

    public User(String name, String department, String grade, String studentId, String phone) {
        this.name = name;
        this.department = department;
        this.grade = grade;
        this.studentId = studentId;
        this.phone = phone;
    }
}
